package com.example.tms.bean;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * 维修视图
 */
@Table(name = "repair")
@Entity
public class RepairView {
    @Column(name = "subscribetime")
    private String subscribeTime;

    @Id
    @Column(name = "repairid")
    private String repairId;

    @Transient
    private List<RepairProject> repairProject ;

    @Column(name = "repairtype")
    private String repairType;

    @Column(name = "internalrepairfactory")
    private String internalRepairFactory;

    @Column(name = "carid")
    private String carId;

    @Column(name = "mileage")
    private int mileage;

    @Column(name = "mileagepicture")
    private String mileagePicture;

    @Column(name = "repairpartpicture")
    private String repairPartPicture;

    @Column(name = "driverid")
    private String driverId;

    @Column(name = "drivername")
    private String driverName;

    @Column(name = "auditopinion")
    private String auditOpinion;

    @Column(name = "remark")
    private String remark;

    @Column(name = "auditname")
    private String auditName;

    @Column(name = "dateofaudit")
    private String dateOfAudit;

    @Column(name = "repairdatestart")
    private String repairDateStart;

    @Column(name = "repairdateend")
    private String repairDateEnd;

    @Column(name = "repairmaterialcostsum")
    private double repairMaterialCostSum;

    @Column(name = "repairtimecostsum")
    private double repairTimeCostSum;

    @Column(name = "repaircostsum")
    private double repairCostSum;

    @Column(name = "repairplace")
    private String repairPlace;

    @Column(name = "repairscenepicture")
    private String repairScenePicture;

    @Column(name = "numberplate")
    private String numberPlate;//车牌号

    @Column(name = "applydate")
    private String applyDate;

    @Column(name = "repairbillpicture")
    private String repairBillPicture;

    @Column(name = "repairinfostatus")
    private String repairInfoStatus;

    @Column(name = "repairmileage")
    private int repairMileage;

    @Column(name = "repairmileagepicture")
    private String repairMileagePicture;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @Column(name = "lasttime")
    private Date lasttime;

    @Column(name = "sfcz")
    private Boolean sfcz;

    @Column(name = "repairfactorypicture")
    private String repairFactoryPicture;

    @Column(name = "itudepicture")
    private String itudePicture;


    public String getRepairFactoryPicture() {
        return repairFactoryPicture;
    }

    public void setRepairFactoryPicture(String repairFactoryPicture) {
        this.repairFactoryPicture = repairFactoryPicture;
    }

    public String getItudePicture() {
        return itudePicture;
    }

    public void setItudePicture(String itudePicture) {
        this.itudePicture = itudePicture;
    }


    public String getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(String subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public String getRepairId() {
        return repairId;
    }

    public void setRepairId(String repairId) {
        this.repairId = repairId;
    }

    public List<RepairProject> getRepairProject() {
        return repairProject;
    }

    public void setRepairProject(List<RepairProject> repairProject) {
        this.repairProject = repairProject;
    }

    public String getRepairType() {
        return repairType;
    }

    public void setRepairType(String repairType) {
        this.repairType = repairType;
    }

    public String getInternalRepairFactory() {
        return internalRepairFactory;
    }

    public void setInternalRepairFactory(String internalRepairFactory) {
        this.internalRepairFactory = internalRepairFactory;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public int getMileage() {
        return mileage;
    }

    public void setMileage(int mileage) {
        this.mileage = mileage;
    }

    public String getMileagePicture() {
        return mileagePicture;
    }

    public void setMileagePicture(String mileagePicture) {
        this.mileagePicture = mileagePicture;
    }

    public String getRepairPartPicture() {
        return repairPartPicture;
    }

    public void setRepairPartPicture(String repairPartPicture) {
        this.repairPartPicture = repairPartPicture;
    }

    public String getDriverId() {
        return driverId;
    }

    public void setDriverId(String driverId) {
        this.driverId = driverId;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getAuditOpinion() {
        return auditOpinion;
    }

    public void setAuditOpinion(String auditOpinion) {
        this.auditOpinion = auditOpinion;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
    }

    public String getDateOfAudit() {
        return dateOfAudit;
    }

    public void setDateOfAudit(String dateOfAudit) {
        this.dateOfAudit = dateOfAudit;
    }

    public String getRepairDateStart() {
        return repairDateStart;
    }

    public void setRepairDateStart(String repairDateStart) {
        this.repairDateStart = repairDateStart;
    }

    public String getRepairDateEnd() {
        return repairDateEnd;
    }

    public void setRepairDateEnd(String repairDateEnd) {
        this.repairDateEnd = repairDateEnd;
    }

    public double getRepairMaterialCostSum() {
        return repairMaterialCostSum;
    }

    public void setRepairMaterialCostSum(double repairMaterialCostSum) {
        this.repairMaterialCostSum = repairMaterialCostSum;
    }

    public double getRepairTimeCostSum() {
        return repairTimeCostSum;
    }

    public void setRepairTimeCostSum(double repairTimeCostSum) {
        this.repairTimeCostSum = repairTimeCostSum;
    }

    public double getRepairCostSum() {
        return repairCostSum;
    }

    public void setRepairCostSum(double repairCostSum) {
        this.repairCostSum = repairCostSum;
    }

    public String getRepairPlace() {
        return repairPlace;
    }

    public void setRepairPlace(String repairPlace) {
        this.repairPlace = repairPlace;
    }

    public String getRepairScenePicture() {
        return repairScenePicture;
    }

    public void setRepairScenePicture(String repairScenePicture) {
        this.repairScenePicture = repairScenePicture;
    }

    public String getNumberPlate() {
        return numberPlate;
    }

    public void setNumberPlate(String numberPlate) {
        this.numberPlate = numberPlate;
    }

    public String getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(String applyDate) {
        this.applyDate = applyDate;
    }

    public String getRepairBillPicture() {
        return repairBillPicture;
    }

    public void setRepairBillPicture(String repairBillPicture) {
        this.repairBillPicture = repairBillPicture;
    }

    public String getRepairInfoStatus() {
        return repairInfoStatus;
    }

    public void setRepairInfoStatus(String repairInfoStatus) {
        this.repairInfoStatus = repairInfoStatus;
    }

    public int getRepairMileage() {
        return repairMileage;
    }

    public void setRepairMileage(int repairMileage) {
        this.repairMileage = repairMileage;
    }

    public String getRepairMileagePicture() {
        return repairMileagePicture;
    }

    public void setRepairMileagePicture(String repairMileagePicture) {
        this.repairMileagePicture = repairMileagePicture;
    }

    public Date getLasttime() {
        return lasttime;
    }

    public void setLasttime(Date lasttime) {
        this.lasttime = lasttime;
    }

    public Boolean getSfcz() {
        return sfcz;
    }

    public void setSfcz(Boolean sfcz) {
        this.sfcz = sfcz;
    }
}
